package com.carkeeper.subject.service;

import com.carkeeper.subject.pojo.Store;
import com.carkeeper.subject.pojo.StoreFull;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface StoreService {
    /**
     * 查询所有
     * @return
     */
     Page<Store> findAll(Integer page,Integer size);
    /**
     * 添加服务商
     * @param storeFull
     */
     void add(StoreFull storeFull);

    /**
     *
     * @param map 查询条件
     * @return  返回分页结果
     */
     Page<Store> findPage(Map<String,Object> map);

    /**
     * 根据id查询
     * @param id
     * @return
     */
     StoreFull findById(String id);

    /**
     * 修改
     * @param storeFull
     */
     void update(StoreFull storeFull);

    /**
     * 根据服务商Id上锁与解锁
     * @param id
     */
     void lockOrUnlock(String id);

      /**
     * 查询要被审核的
     * @return
     */
    Page<Store> findAudited(int currPage, int pageSize);

    Page<Store> findrejected(int currPage, int pageSize);

    Page<Store> indRejectedByCondition(Integer currPage, Integer pageSize,Map<String,Object> map);

    Page<Store> findAuditedByCondition(Integer currPage, Integer pageSize, Map<String, Object> map);

    StoreFull findStoreDetail(String code);

    int pass(Long id);

    int reject(Long id);

    /**
     * 查询要被审核的
     * @return
     */



}
